home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-09-17 | 1.1 KB | 20 lines | [TEXT/ttxt] |
- Xap dcmd README
-
- The basic idea here is to trash the blocks in the heap as they are disposed, in order
- to flush out any use of memory that has been disposed. This thing will patch the
- traps DisposPtr and DisposHandle, and when they are called, it will fill the entire
- block with $50FFC001 as a funky number that may cause bus errors if used in an
- inappropriate situation. As it runs, more and more of the memory will be filled
- with these numbers, so it can also find some use of uninitialized variables.
-
- Notably, you can't really run this during boot time, since the system is a little
- to weird, and a number of Inits do things like dispose the block the pc is running
- out of. With Zap on, the code stream gets filled with illegal instructions, and you
- find out who is being sick. (Like a lot of these things, it isn't strictly a bug, since it
- won't crash in the normal case, it's just a bad idea.)
-
- The options are: Zap On|Off
- Off by default, naturally, and it doesn't toggle, although perhaps it should, instead
- of requiring a parameter.
-
-